@(modelForView: model.forview.SearchModelForView)
@main(modelForView.mainModelForView) {

<!-- CONTENT -->
<div class="span12">
	<div class="well">
		<form method="GET">
			<p>Введите критерий поиска</p>
			<div class="input-append">
	    			<input class="span2" name="query" type="text" style="width:500px" value="@modelForView.getQuery()" placeholder="Поиск">
	    			<button class="btn" type="submit"><i class="icon-search"></i>Поиск</button>
	    	</div>
		</form>
	</div>
</div>

<div class="span12">
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>#</th>
				<th>Имя узла</th>
				<th>Имя структуры</th>
				<th>Создатель</th>
				<th>Дата создания</th>
				<th>Изменивший</th>
				<th>Дата изменения</th>
			</tr>
		</thead>
		<tbody>
			@for(i <- 0 until modelForView.getNodesSize()){
				<tr>
					<td>@modelForView.getIndex(i)</td>
					<td><a href="@routes.Hierarchy.node(modelForView.getNodeId(i), 0)" target="_blank">@modelForView.getNodeTitle(i)</a></td>
					<td><a href="@routes.Hierarchy.node(0, modelForView.getStructureId(i))" target="_blank">@modelForView.getStructureTitle(i)</a></td>
					<td><a href="#">@modelForView.getNodesCreaterName(i)</a></td>
					<td>@modelForView.getNodesCreateDate(i)</td>
					<td><a href="#">@modelForView.getNodesChangerName(i)</a></td>
					<td>@modelForView.getNodesChangeDate(i)</td>
				</tr>
			}
		</tbody>
	</table>
</div>
}
